home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Interim Executive Decision / Outline Table Demo / sources / CEditItem.h < prev    next >
Encoding:
Text File  |  1998-06-21  |  837 b   |  38 lines  |  [TEXT/CWIE]

  1. //============================================================================
  2. // CEditItem.h            ©1997 Metrowerks Inc. All rights reserved
  3. // Original author: John C. Daub
  4. //============================================================================
  5.  
  6. #pragma once
  7.  
  8. #include <LEditableOutlineItem.h>
  9. #include <LInPlaceEditField.h>
  10. #include <LListener.h>
  11. #include <LString.h>
  12.  
  13.  
  14. class CEditItem : public LEditableOutlineItem,
  15.                     public LListener {
  16.  
  17.  
  18. public:
  19.  
  20.                             CEditItem();
  21.             virtual            ~CEditItem();
  22.  
  23.  
  24.         virtual    void    StartInPlaceEdit( const STableCell &inCell );
  25.         
  26. protected:
  27.  
  28.         virtual void            GetDrawContentsSelf(
  29.                                     const STableCell&        inCell,
  30.                                     SOutlineDrawContents&    ioDrawContents);
  31.  
  32.         virtual    void            ListenToMessage( MessageT inMessage, void *ioParam );
  33.  
  34.                 LStr255            mText;
  35.             LInPlaceEditField    *mEditField;
  36. };
  37.  
  38.